﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LoveNote.Database.Entities
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table(nameof(UserEntity))]
    public partial class UserEntity : EntityBase
    {
        private string userName = string.Empty;
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName
        {
            get { return userName; }
            set { SetProperty(ref userName, value); }
        }

        private string password = string.Empty;
        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            get { return password; }
            set { SetProperty(ref password, value); }
        }

        private int role;
        /// <summary>
        /// 角色,0表示管理员
        /// </summary>
        public int Role
        {
            get { return role; }
            set { SetProperty(ref role, value); }
        }

        private string indexView = "首页";
        /// <summary>
        /// 
        /// </summary>
        public string IndexView
        {
            get { return indexView; }
            set { SetProperty(ref indexView, value); }
        }

        private string noteView = "便签";
        /// <summary>
        /// 
        /// </summary>
        public string NoteView
        {
            get { return noteView; }
            set { SetProperty(ref noteView, value); }
        }

        private string workView = "工作计划";
        /// <summary>
        /// 
        /// </summary>
        public string WorkView
        {
            get { return workView; }
            set { SetProperty(ref workView, value); }
        }
        private string pictureView = "图片集";
        /// <summary>
        /// 
        /// </summary>
        public string PictureView
        {
            get { return pictureView; }
            set { SetProperty(ref pictureView, value); }
        }

        private string customerView = "客户";
        /// <summary>
        /// 
        /// </summary>
        public string CustomerView
        {
            get { return customerView; }
            set { SetProperty(ref customerView, value); }
        }

        private string settingView = "设置";
        /// <summary>
        /// 
        /// </summary>
        public string SettingView
        {
            get { return settingView; }
            set { SetProperty(ref settingView, value); }
        }

        private string logoutView = "切换账户";
        /// <summary>
        /// 
        /// </summary>
        public string LogoutView
        {
            get { return logoutView; }
            set { SetProperty(ref logoutView, value); }
        }
    }
}
